import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/components/LoginComponent')
  },
  {
    path: '/main',
    name: 'main',
    component: () => import('@/components/MainComponent')
  },{
    path: '/register',
    name: 'register',
    component: () => import('@/components/RegisterComponent')
  },
  {
    path: '/pay',
    name: 'pay',
    component: () => import('@/components/PayComponent')
  }
]

const router = new VueRouter({
  routes
})

export default router
